﻿using System;
using System.ComponentModel;

namespace MESPro.Controls
{
    [Description]
    public class RMControlAttribute : Attribute
    {
        /// <summary>
        /// 描述
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 控件图标
        /// </summary>
        public string? ImageKey { get; set; } = "ControlImage.ico";
        /// <summary>
        /// 控件类型
        /// </summary>
        public string? Type { get; set; }
        public RMControlAttribute() { }

        public RMControlAttribute(string Description)
        {
            Name = Description;
        }
        public RMControlAttribute(string Description,string ImageKey)
        {
            Name = Description;
            this.ImageKey = ImageKey;
        }
        public RMControlAttribute(string Description, string ImageKey,string type)
        {
            Name = Description;
            this.ImageKey = ImageKey;
            this.Type = type;
        }
    }
}
